#ifndef _UART_PROTOCOL_H_
#define _UART_PROTOCOL_H_

#include "../Protocol.h"
#include "SoftwareUart.h"

class UartProtocol : public Protocol
{
	private:
		SoftwareUart uart;
		bool errorCheck;
		bool parityCheck;
	public:
		UartProtocol();
		UartProtocol(SoftwareUart& u);
		 bool error();
		 bool parity();
		 void config();
		 void run();
		
};


#endif
